//
//  KKChatMsgBaseTableViewCell.h
//  ReplyAssistant
//
//  Created by liaozhenming on 2018/11/22.
//  Copyright © 2018 KK. All rights reserved.
//

#import <UIKit/UIKit.h>

@class KKMessageItem;

typedef NS_ENUM(NSUInteger, KKChatMsgBaseTableViewCellStyle){
    KKChatMsgBaseTableViewCellStyle_C2C = 0,
    KKChatMsgBaseTableViewCellStyle_Group = 1,
};

NS_ASSUME_NONNULL_BEGIN

@interface KKChatMsgBaseTableViewCell : UITableViewCell {
    KKChatMsgBaseTableViewCellStyle _cellStyle;
}

@property (nonatomic, strong) UIImageView *img_userHeader;   /**<用户头像*/
@property (nonatomic, strong) UIImageView *img_contentBackground;   /**<聊天内容气泡*/
@property (nonatomic, strong) UIView *msgContent;       /**<聊天内容*/

@property (nonatomic, weak) KKMessageItem *msg;

- (instancetype)initWithC2CReuseIdentifier:(NSString *)reuseIdentifier;
- (instancetype)initWithGroupReuseIdentifier:(NSString *)reuseIdentifier;

- (void)configWithMsg:(KKMessageItem*)msg;

//  配置消息内容
- (void)configContent;

// 添加C2C样式下的控件
- (void)addC2CCellViews;

//  加入内容控件
- (UIView*)addElemContent;

@end

NS_ASSUME_NONNULL_END
